package controller

import (
	"net/http"
	"serve/controller/iteration"
	"serve/controller/project"
	"serve/controller/svg"

	"github.com/gin-gonic/gin"
)

// RegisterRouter 注入路由
func RegisterRouter(r *gin.Engine) {
	project.RegisterRouter(r.Group("/api/project"))
	iteration.RegisterRouter(r.Group("/api/iteration"))
	svg.RegisterRouter(r.Group("/api/svg"))
}

func Index(c *gin.Context) {
	c.String(http.StatusOK, "svg服务")
}
